/*
 * @Author:
 * @Date: 2023-06-27 10:52:46
 * @LastEditors:
 * @LastEditTime: 2023-06-28 11:33:25
 * @FilePath: \immoka-admin\src\api\wishingHouse.js
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name} , All Rights Reserved.
 */
import request from '@/utils/request'

// 列表
export function listData(query) {
    return request({
        url: '/api/couple/wish/product/list',
        method: 'get',
        params: query
    })
}

// 保存奖励
export function wishProductSave(query) {
    return request({
        url: '/api/couple/wish/product/save',
        method: 'post',
        data: query
    })
}
// 编辑装饰类别
export function putDecorateType(query) {
    return request({
        url: `/api/couple/decorate/type/${query.id}`,
        method: 'put',
        data: query
    })
}


// 删除奖励
export function wishProductDel(query) {
    return request({
        url: `/api/couple/wish/product/del`,
        method: 'put',
        data: query
    })
}

// 上下架奖励
export function wishProductStatus(query) {
    return request({
        url: `/api/couple/wish/product/status`,
        method: 'put',
        data: query
    })
}

// 奖励详情
export function wishProductDetail(query) {
    return request({
        url: '/api/couple/wish/product/detail',
        method: 'get',
        params: query
    })
}

// 标签列表
export function labelList(query) {
    return request({
        url: '/api/couple/wish/label/list',
        method: 'get',
        params: query
    })
}
// 保存标签
export function wishLabelSave(query) {
    return request({
        url: '/api/couple/wish/label/save',
        method: 'post',
        data: query
    })
}
// 删除标签
export function wishLabelDel(query) {
    return request({
        url: '/api/couple/wish/label/del',
        method: 'put',
        data: query
    })
}

// 登记列表
export function entryList(query) {
    return request({
        url: '/api/couple/entry/list',
        method: 'get',
        params: query
    })
}
// 发邮寄、无需邮寄
export function entrySave(query) {
    return request({
        url: '/api/couple/entry/save',
        method: 'post',
        data: query
    })
}

// 完成列表
export function completeList(query) {
    return request({
        url: 'api/couple/complete/list',
        method: 'get',
        params: query
    })
}
